package it.mozzicato.apkwizard.dto;

import it.mozzicato.apkwizard.utils.DescriptionEnum;

// Creato il 18/mar/2011

/**
 * @author Roberto Mozzicato
 *
 */
public enum ResourceTypes implements DescriptionEnum {
	Strings("string", "strings.xml", 1),
	Arrays("array", "arrays.xml"),
	Plurals("plurals", "plurals.xml"),
	IDs("id", "ids.xml", 1),
	Integers("integer", "integers.xml", 1),
	Booleans("bool", "bools.xml", 1),
	Attributes("attr", "attrs.xml"),
	Colors("color", "colors.xml", 1),
	Dimensions("dimen", "dimens.xml", 1),
	Drawables("drawable", "drawables.xml", 1),
	Layouts("layout"),
	Animations("anim"),
	Styles("style", "styles.xml"),
	Xml("xml"),
	Raw("raw");
	

	private String description;
	private String fileName;
	private int maxCount=Integer.MAX_VALUE;

	ResourceTypes(String value) {
		this(value, null, Integer.MAX_VALUE);
	}
	
	ResourceTypes(String value, String fileName) {
		this(value, fileName, Integer.MAX_VALUE);
	}
	
	ResourceTypes(String value, String fileName, int maxCount) {
		this.description=value;
		this.fileName=fileName;
		this.maxCount=maxCount;
	}
	
	@Override
	public String getDescription() {
		return description;
	}
	
	public String getFileName() {
		return fileName;
	}

	public int getMaxCount() {
		return maxCount;
	}
}
